﻿

jQuery(function($){
	
	    	//var url = location.href.trim();//modify by chenyuming at 20130820  
		//var titlestr =document.getElementsByTagName('title')[0].text.trim();
	    	var url = $.trim(window.location.href); 
		var titlestr = $.trim(document.getElementsByTagName('title')[0].text);
		
		$("#tengxun_wb").attr("href","../../../../../sns.z.qq.com/share@share_url="+url+"&share_title="+titlestr);
		
		$("#qqkj_title").attr("value",titlestr+url);
		$("#qqkj_url").attr("value",url);
		var timec= Date.parse(new Date());
	
var imgurl = "";

		if($(".htmlcontent li h6 img").length >0){ imgurl = $(".htmlcontent li h6 img").attr("src");}
			if($(".htmlcontent p img").length >0){ 	 imgurl = $(".htmlcontent p img").attr("src"); }
	
		 if(imgurl.indexOf('http://')==-1){ imgurl= "../../../../iphone"+imgurl }
	
		$("#sinawbimg").attr("href","../../../../../weibo.cn/ext/share@ru="+url+"&rt="+titlestr+"&st="+timec+"&appkey=2223369352&skipshow=0");

});

